package Filter;

import logging.Record;

import java.util.Date;

public class DateFilter implements FilterStrategy {
        
        private String date;
        
        public DateFilter(String date) {
            this.date=date;
        }

        public DateFilter(Date date) {
            this.date=date.toString();
        }
        
        public boolean apply(Record record) {     
               return (record.getDate().toString().equals(this.date));
 
        }


}